Skip to content

Add Rush reporter repository configuration - #5987

Merged
Sean Larkin (TheLarkInn) merged 2 commits into
mainfrom
copilot/reporter-r2a-experiment-config
Sep 10, 2026
Merged

Add Rush reporter repository configuration#5987
Sean Larkin (TheLarkInn) merged 2 commits into
mainfrom
copilot/reporter-r2a-experiment-config

Conversation

@TheLarkInn

@TheLarkInn Sean Larkin (TheLarkInn) commented Aug 28, 2026

Copy link
Copy Markdown
Member

Part of #5975.

Stack

This is the R2A child of #5986. Keep auto-merge disabled while either ancestor is open. After #5985 and #5986 merge in order, retarget this PR to main, verify its slice and CI, then merge it before #5989.

Changes

  • Add the experimental useRushReporter opt-in to experiments types, schema, and rush init template.
  • Add typed rush.json loading for reporting.agentEnvironmentVariables, including schema and template support.
  • Add focused default, parsing, and invalid-input coverage plus the Rush API report and changefile.

Validation

  • rush test --only @microsoft/rush-lib
  • rush check
  • rush change --verify --no-fetch
  • Generated rush init files verified to omit reporting and useRushReporter by default.
  • gh pr diff 5987 contains only the 11-file R2A configuration/schema slice.

Compatibility and non-goals

Absent or false useRushReporter preserves legacy reporting behavior, and absent reporting configuration yields an empty agent-variable list. This PR only exposes typed repository configuration; it does not activate agent auto-selection, add frontend/CLI controls, or produce visible reporter output.

@TheLarkInn

Copy link
Copy Markdown
Member Author

Independent stack-base review found no actionable defects in the repository configuration/schema/API slice. Local rush-lib tests, rush check, and changefile verification passed. Combined validation with #5989 is clean. Stack gate: keep this PR based on copilot/reporter-r1a-package-wiring with auto-merge disabled until #5985 merges; then retarget to main and run full CI. Merge #5987 before #5989 so the public useRushReporter schema/API lands before the frontend consumes it.

@TheLarkInn
Sean Larkin (TheLarkInn) force-pushed the copilot/reporter-r2a-experiment-config branch from da8e9ca to c647c7f Compare August 28, 2026 04:37
@TheLarkInn
Sean Larkin (TheLarkInn) changed the base branch from copilot/reporter-r1a-package-wiring to copilot/reporter-r1b-bootstrap-generation August 28, 2026 04:37
@TheLarkInn

Copy link
Copy Markdown
Member Author

Linear stack update: R2A is now head c647c7f based on #5986. Its GitHub diff is exactly the 11-file configuration/schema slice. Auto-merge remains disabled while #5985/#5986 are open.

@TheLarkInn

Copy link
Copy Markdown
Member Author

Combined deep review of current head c647c7f967.

No critical, high, or medium actionable findings. No useful low follow-ons.

@TheLarkInn
Sean Larkin (TheLarkInn) force-pushed the copilot/reporter-r2a-experiment-config branch from c647c7f to daab290 Compare September 3, 2026 17:24
@TheLarkInn
Sean Larkin (TheLarkInn) force-pushed the copilot/reporter-r2a-experiment-config branch from daab290 to 167851c Compare September 3, 2026 18:43
Base automatically changed from copilot/reporter-r1b-bootstrap-generation to main September 3, 2026 20:14
@TheLarkInn
Sean Larkin (TheLarkInn) force-pushed the copilot/reporter-r2a-experiment-config branch 2 times, most recently from 4192233 to e191fa7 Compare September 3, 2026 20:15
@TheLarkInn

Copy link
Copy Markdown
Member Author

Deep review of current head e191fa7 found no critical, high, or medium actionable issues. The only failed matrix job was a wall-time benchmark flake, and its failed job has been rerun. Merge remains gated by maintainer approval and rerun success.

@TheLarkInn

Copy link
Copy Markdown
Member Author

The isolated wall-time benchmark rerun passed. Current head e191fa7 is full-CI green and blocked only by maintainer approval.

@TheLarkInn
Sean Larkin (TheLarkInn) force-pushed the copilot/reporter-r2a-experiment-config branch from e191fa7 to 8c6b049 Compare September 4, 2026 18:49
Sean Larkin (TheLarkInn) added a commit that referenced this pull request Sep 7, 2026
Follow up #5987 without changing configuration behavior; concurrent flag-file tests empty api/test/temp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4747f826-8c83-495d-80df-3d1168662e10
@TheLarkInn

Copy link
Copy Markdown
Member Author

Published 3b005ee1581124740a76e6df2bdb233fba51be0b as a normal fast-forward from 8c6b04953e: only the two reporter configuration fixture directories changed, isolating them from shared api/test/temp cleanup.

Local validation: node common/scripts/install-run-rush.js test --only @microsoft/rush-lib --parallelism 4 passed (build and tests). New-head CI is tracked by run 34125971099; old-head green checks are not being reused. Configuration/default behavior is unchanged. Required independent review remains outstanding; no merge was performed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d6318e80-5da9-4858-a147-817e8692f10e
Follow up #5987 without changing configuration behavior; concurrent flag-file tests empty api/test/temp.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4747f826-8c83-495d-80df-3d1168662e10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The configuration types, schemas, templates, defaults, and validation tests are consistent with the stated compatibility requirements.

Review tier: Balanced
Findings: None

What changed in this PR

Adds opt-in repository configuration for the experimental Rush reporter without changing runtime behavior.

Changes:

  • Adds useRushReporter experiment configuration.
  • Adds typed reporting.agentEnvironmentVariables support.
  • Adds schema, template, API report, and validation coverage.
File Description
libraries/​rush-lib/​src/​schemas/​rush.schema.json Defines reporter configuration schema.
libraries/​rush-lib/​src/​schemas/​experiments.schema.json Defines reporter opt-in schema.
libraries/​rush-lib/​src/​index.ts Exports the reporting configuration type.
libraries/​rush-lib/​src/​api/​test/​RushConfigurationReporting.test.ts Tests reporting configuration loading.
libraries/​rush-lib/​src/​api/​test/​ExperimentsConfiguration.test.ts Tests experiment parsing and defaults.
libraries/​rush-lib/​src/​api/​RushConfiguration.ts Loads typed reporter settings.
libraries/​rush-lib/​src/​api/​ExperimentsConfiguration.ts Adds the experiment type.
libraries/​rush-lib/​assets/​rush-init/​rush.json Documents optional reporter settings.
libraries/​rush-lib/​assets/​rush-init/​common/​config/​rush/​experiments.json Documents the reporter opt-in.
common/​reviews/​api/​rush-lib.api.md Updates the public API report.
common/​changes/​@microsoft/​rush/​copilot-reporter-r2a-experiment-config_2026-08-28-02-38.json Records the patch change.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@TheLarkInn
Sean Larkin (TheLarkInn) merged commit c366004 into main Sep 10, 2026
11 checks passed
@TheLarkInn
Sean Larkin (TheLarkInn) deleted the copilot/reporter-r2a-experiment-config branch September 10, 2026 20:23
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants